//
//  AY_BookQDItemCell2.m
//  AiYue
//
//  Created by boWen on 2023/11/3.
//

#import "AY_BookQDItemCell2.h"


@interface AY_BookQDItemCell2 ()
@property (strong,nonatomic) UIView * bg_View;
//@property (strong,nonatomic) UILabel *topLabel;
@property (strong,nonatomic) UILabel *downLabel;
@property (strong,nonatomic) UIImageView *midImage;
@end

@implementation AY_BookQDItemCell2



- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.bg_View = [AYTool createViewWithFrame:CGRectZero andBg:COLOR(@"#FFF0DD") andRadius:YNUM(6) andAddSubView:self.contentView];
        [self.bg_View mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.right.top.bottom.equalTo(self.contentView);
        }];
        self.midImage = [AYTool createImageViewWithFrame:CGRectZero andImage:YImage(@"icon_gift_own.png") andBg:nil andRadius:YNUM(4) andAddSubView:self.bg_View];
        [self.midImage mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.mas_equalTo(YNUM(113));
            make.height.mas_equalTo(YNUM(66));
            make.top.equalTo(self.bg_View).offset(YNUM(2));
            make.centerX.equalTo(self.bg_View);
        }];
    
        self.downLabel = [AYTool createLabelWithFrame:CGRectZero andText:@"" andTextColor:COLOR(@"#F86923") andBgColor:nil andFont:[UIFont boldSystemFontOfSize:YNUM(12)] andLines:2 andRadius:0 andAddSubView:self.bg_View];
        [self.downLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.bottom.equalTo(self.bg_View).offset(YNUM(-8));
            make.centerX.equalTo(self.bg_View);
            make.height.mas_offset(YNUM(20));
        }];
        
    }
    return self;
}


- (void)setQdListModel:(QianDListModel *)qdListModel {
    _qdListModel = qdListModel;
    self.downLabel.text = kStringUtils(qdListModel.rewardGold);
}

@end
